//
//  NYHeaderView.m
//  NOAHWM
//
//  Created by Ryan on 13-6-21.
//  Copyright (c) 2013年 Ryan. All rights reserved.
//

#import "NYHeaderView.h"

@implementation NYHeaderView

@synthesize leftButton,rightButton,titleLabel,extraButton;
@synthesize delegate;

#pragma mark - Public methods

- (IBAction)leftButtonClicked:(id)sender
{
    [self.delegate didLeftItemTapped];
}
- (IBAction)rightButtonClicked:(id)sender
{
    [self.delegate didRightItemTapped];
}

- (IBAction)extraButtonClicked:(id)sender
{
    [self.delegate didExtraItemTapped];
}
#pragma mark - UIView methods

- (void)dealloc
{
    [extraButton release];
    [leftButton release];
    [rightButton release];
    [titleLabel release];
    [super dealloc];
}
@end
